
import React from 'react'
import { Input, Table, Tooltip, Pagination, Button, message } from 'antd';


class User extends React.Component {

  constructor(props) {
    super(props);
    this.columns = [
      {
        title: 'username',
        dataIndex: 'username',
      },
      {
        title: 'password',
        dataIndex: 'password',
      }
    ];

    this.columns.push({
      title: '操作',
      key: 'operation',
      align: "center",
      render: (text, record) => {
        return <div>
         aaaaaaaaaaaaaaaaaa
        </div>;
      }
    });
  }


  state = {
    username: "",
    selectedRowKeys: [],
    visible: false,
    startPage: 1,
    limit: 10,
    total: 0,
    record: {},
    modelType: "add"
  };


  showUpdateModal = (record) => {
    this.setState({ visible: true, modelType: "update", record: record })
  };


  showAddModal = (record) => {
    this.setState({
      visible: true,
      modelType: "add",
      record: {}
    });
  };

  delete(r) {
    window.MIO.userDelete({ ids: r }).then(d => {
       message.success("删除成功"); 
       this.props.userStore.listAllUser(this.state); 
      })
  };





  render() {

    return (
      <div>
       aaaaaaaaaaaaaaaaa
      </div>)
      ;
  }
}


export default User;


